<template>
  <div class="card">
    <div
      class="card-img"
      :style="{ backgroundPosition: detail.positions }"
    ></div>
    <div class="card-title">{{ detail.title }}</div>
    <div class="card-desc">{{ detail.desc }}</div>
  </div>
</template>

<script setup>
import { defineProps } from "vue";
const props = defineProps({
  detail: {
    type: Object,
    default: () => {},
  },
});
</script>

<style lang="less">
.card {
  width: 260px;
  height: 195px;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  box-shadow: 0 4px 10px 0 rgba(157, 167, 175, 0.3);
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 50px;
  .card-img {
    background: url(https://ctpublic.ieway.cn/public/v5/imgs/evcapture/evcapture_sprites20240726.png);
    width: 100px;
    height: 70px;
    margin-top: 28px;
  }
  .card-title {
    text-align: center;
    color: #474747;
    font-size: 18px;
    font-weight: 600;
  }
  .card-desc {
    font-size: 14px;
    margin-top: 10px;
    color: #999;
  }
}
</style>
